<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Cadastrar Email</title>
</head>

<body>
	<c:if test="${not empty msg}">
		<div style="color: blue;">
			<c:out value="${msg}"></c:out>
		</div>
	</c:if>
	 	
	<form action="/Livraria/usuario" method="POST" name="cadastrarUsuario">
		
		<table>
			<tr>
				<td>Email:</td>
				<td><input type="text" name="email" id="email" /></td>
			</tr>
			<tr>
				<td>Senha:</td>
				<td><input type="text" name="senha" id="senha" onblur="funcao();" /><label id="msgEmail"></label></td>
			</tr>
			<tr>
				<td>Repetir Senha:</td>
				<td><input type="text" name="rsenha" id="rsenha" onblur="funcao();" /><label id="msgEmail"></label></td>
			</tr>
			<tr>
				<td>Nome:</td>
				<td><input type="text" name="nome" id="nome" onblur="funcao();" /><label id="msgEmail"></label></td>
			</tr>
			 <tr>
				 <td>Telefone</td>
				 <td><input type="text" name="telefone" id="telefone" /></td>
			 </tr>
		</table>
		 
		<br/>
		
		<button id="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" onclick="cadastrarUsuario.submit();">
			<span class="ui-button-text">Cadastrar</span>
		</button>
		
		<input type="hidden" name="operacao" value="cadastrar" />
		
	
	</form>

</body>
</html>